package com.xiaoma.pattern.proxy.pre;

public class HelloWorldSubject implements Subject {
    @Override
    public void prePrint() {
        System.out.println("pre");
    }

    @Override
    public void print() {
        prePrint();
        System.out.println("Hello world");
        postPrint();
    }

    @Override
    public void postPrint() {
        System.out.println("post");
    }
}
